/*
 * PalabraPos.h
 *
 *  Created on: 27/11/2010
 *      Author: julfc
 */

#ifndef PALABRAPOS_H_
#define PALABRAPOS_H_

#include <string>
#include <iostream>
#include <algorithm>

using namespace std;

class PalabraPos {
public:
	string palabra;
	long pos;

	PalabraPos();
	PalabraPos(string palabra, long pos);

	bool operator < (const PalabraPos& p) const {
		if(palabra.compare(p.palabra) < 0) return true;
		return false;
	}
	virtual ~PalabraPos();
};

#endif /* PALABRAPOS_H_ */
